package me.sdevil507.systemAssist.systemUserWorkSapce.po;

import lombok.Data;
import lombok.EqualsAndHashCode;
import me.sdevil507.supports.jpa.BaseJpaSnowflakeIdEntity;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @program: tips_back_end
 * @description: 用户工作台
 * @create: 2021-7-12 14:50:15
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "system_user_work_space")
@Where(clause="is_del = 0")
public class SystemUserWorkSpacePO extends BaseJpaSnowflakeIdEntity {

    /**
     * 模块id
     */
    @Column
    private Long moduleId;

    /**
     * 模块名称
     */
    @Column
    private String moduleName;

    /**
     * 模块图标
     */
    @Column
    private String moduleIcon;

    /**
     * 模块path
     */
    @Column
    private String modulePath;

    /**
     * 用户id
     */
    @Column
    private Long userId;

    /**
     * 创建时间
     */
    @Column
    private Date createTime = new Date();

    /**
     * 是否删除
     */
    @Column(nullable = false)
    private Boolean isDel= false;

}
